package OOP;

public class Sinaean {

    private String name ;
    private int age ;
    private char gender ;
    private boolean married ;

    public void show(){
        System.out.println("我是" + name + "，今年" + age + "岁，性别" + gender + "，目前" + (married ? "已婚" : "未婚"));
    }

    public static void main(String [] args){
        Sinaean s = new Sinaean();
        s.name = "蒋嘉豪";
        s.age = 18;
        s.gender = '男';
        s.married = false;

        s.show();
    }
}
